import React, {Component} from 'react'
import {Link} from 'react-router'
import '../sass/MyAlert.scss'

export default class CancelOrder extends Component {
  constructor() {
    super()
  }

  render() {
    const {cancelCancel, tel} = this.props

    return (
        <section className="cancel-order">
          <div className="cancel-order-box">
            <p>该手机号已被绑定</p>
            <p>{`如有疑问请联系${tel}`}</p>
            <Link className="link" href={`tel:${tel}`} onClick={cancelCancel.bind(this)}>确定</Link>
            <Link className="link" onClick={cancelCancel.bind(this)}>取消</Link>
          </div>
        </section>
    )
  }
}
